import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../wangyi_news/account_setting.dart';
import '../wangyi_news/free_flow_new_page.dart';
import '../wangyi_news/levelPage.dart';
import '../wangyi_news/recentPage.dart';
import '../wangyi_news/small_vido.dart';
import '../wangyi_news/squarePage.dart';

class WangYiNewsHomePage extends StatefulWidget {
  const WangYiNewsHomePage({Key key}) : super(key: key);

  @override
  _WangYiNewsHomePageState createState() => _WangYiNewsHomePageState();
}

class _WangYiNewsHomePageState extends State<WangYiNewsHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('网易新闻客户端'),
      ),
      body: Column(
        children: [
          ElevatedButton(
            onPressed: () {
              Get.to(
                RecentPage(),
              );
            },
            child: Text('最近浏览'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to(
                LevelPage(),
              );
            },
            child: Text('等级介绍'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to(
                AccountSettingPage(),
              );
            },
            child: Text('账号设置'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to(
                SmallVidePage(),
              );
            },
            child: Text('小视频'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to(
                SquarePage(),
              );
            },
            child: Text('圈子广场'),
          ),
          ElevatedButton(
            onPressed: () {
              Get.to(
                FreeFlowNewPage(),
              );
            },
            child: Text('免流量看新闻'),
          ),
        ],
      ),
    );
  }
}
